import 'package:xin_he/generated/json/base/json_field.dart';
import 'package:xin_he/generated/json/xin_he_assets_account_list_item_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class XinHeAssetsAccountListItemEntity {
	String? assetType;
	String? businessId;
	String? createTime;
	String? fUserId;
	int? fuserId;
	String? id;
	double? remainder;
	String? remark;
	double? tradeAmount;
	String? tradeType;

	XinHeAssetsAccountListItemEntity();

	factory XinHeAssetsAccountListItemEntity.fromJson(Map<String, dynamic> json) => $XinHeAssetsAccountListItemEntityFromJson(json);

	Map<String, dynamic> toJson() => $XinHeAssetsAccountListItemEntityToJson(this);

	XinHeAssetsAccountListItemEntity copyWith({String? assetType, String? businessId, String? createTime, String? fUserId, int? fuserId, String? id, double? remainder, String? remark, double? tradeAmount, String? tradeType}) {
		return XinHeAssetsAccountListItemEntity()
			..assetType= assetType ?? this.assetType
			..businessId= businessId ?? this.businessId
			..createTime= createTime ?? this.createTime
			..fUserId= fUserId ?? this.fUserId
			..fuserId= fuserId ?? this.fuserId
			..id= id ?? this.id
			..remainder= remainder ?? this.remainder
			..remark= remark ?? this.remark
			..tradeAmount= tradeAmount ?? this.tradeAmount
			..tradeType= tradeType ?? this.tradeType;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}